<template>
  <div class="department">
    <div class="departmentDiv">
      <span class="departmentTitle">部门总应用数</span>
      <span class="departmentData">{{ application.totalApp }}</span>
    </div>
    <div class="departmentDiv">
      <span class="departmentTitle">总使用人数</span>
      <span class="departmentData">{{ application.totalVisitor }}</span>
    </div>
    <div class="departmentDiv">
      <span class="departmentTitle">系统状态</span>
      <span class="departmentData">{{ application.totalVisitor }}<span>异常</span></span>
    </div>
  </div>
</template>
<script>
import BS from '../dataManage'
import { changeKind,changeMsg } from '../vuex/action'
export default {
  data () {
    return{
     application:[]
    }
  },
  vuex: {
   getters: {
      kind(state) {
        return state.kind
      },
      msg(state){
        return state.msg
      }
    }
  },
  props:{
   applicationurl:{
    type:String
   }
  },
  methods: {
    
  },
  ready(){
    var self = this;
    BS.getDeptmentOverview.call(self,self.msg,self.applicationurl,self.kind);
  },
  watch:{
    'msg':function(){
        BS.getDeptmentOverview.call(this,this.msg,this.applicationurl,this.kind)
    },
    'kind':function(){
        BS.getDeptmentOverview.call(this,this.msg,this.applicationurl,this.kind)
    }
  }
}
</script>

<style scoped>
div.row {
  width: 100%;
  background: #EEF4F5;
  margin-left: 0;
  margin-right: 0;
}
div.department {
  width: 100%;
  height: 150px;
  float: left;
  margin-top: 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);
  -ms-filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);/*IE8*/  
  background:#2ACDCF; /* 一些不支持背景渐变的浏览器 */  
  background:-moz-linear-gradient(left, #769ADC, #2ACDCF);  
  background:-webkit-gradient(linear, 0 0, right bottom, from(#769ADC), to(#2ACDCF));  
  background:-o-linear-gradient(left, #769ADC, #2ACDCF);
}
div.department div.departmentDiv {
  width: 33.2%;
  height: 100%;
  float: left;
}
div.department div.processIng {
  background-color: transparent;
  border-right: 1px solid #2ACDCF;
}
div.department div.todayComplete {
  background-color: transparent;
  border-right: 1px solid #2ACDCF;
}
div.department div span {
  font-size: 18px;
  color: #fff;
  width: 100%;
  display: block;
  text-align: center;
  padding: 16px 0;
}
div.department div span.departmentData {
    color: #fff;
    font-size: 32px;
    width: 100%;
    display: block;
    text-align: center;
    letter-spacing: 5px;
}
div.department .departmentDiv:nth-child(2){
  border-left: 1px solid #DDDDDD;
  border-right: 1px solid #DDDDDD;
}
div.department{
  padding: 20px 0;
}
.departmentData span{
  font-size: 12px!important;
  display: initial!important;
}
</style>
